import 'package:json_annotation/json_annotation.dart'; 
  
part 'chat_sql_model.g.dart';

// 保存在ChatLogProvider里面数据的model
@JsonSerializable()
  class ChatSqlModel extends Object {

  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'logId')
  int logId;

  @JsonKey(name: 'sendUid')
  int sendUid;

  @JsonKey(name: 'content')
  String content;

  @JsonKey(name: 'type')
  int type;

  @JsonKey(name: 'addTime')
  int addTime;

  ChatSqlModel(this.id,this.logId,this.sendUid,this.content,this.type,this.addTime,);

  factory ChatSqlModel.fromJson(Map<String, dynamic> srcJson) => _$ChatSqlModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ChatSqlModelToJson(this);

}

  
